package com.example.friend.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class QuestionDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "QUESTION_ID", type = IdType.ASSIGN_ID)
    @Schema(description = "题目id")
    private Long questionId;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "竞赛id")
    private Long examId;
}
